var express = require('express');
var router = express.Router();
var userController = require('../controller/userController');
const auth = require("../middleware/auth");
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});
router.post('/signin', userController.signin);
router.post('/login', userController.login);
router.get('/islogin', userController.islogin);
router.get('/layout',auth, userController.layout);

module.exports = router;
